package com.emm.yixun.customer.service;
import javax.jws.WebService;
import com.emm.yixun.common.page.Page;
import com.emm.yixun.common.response.Response;
import com.emm.yixun.common.response.ResponseList;
import com.emm.yixun.common.model.CustomerAnswer;
import com.emm.yixun.common.model.CustomerAnswerInfo;
import com.emm.yixun.common.model.dto.CustomerAnswerDto;
@WebService
public interface CustomerAnswerServiceFacade{
     	/**
	    *新增
	    */
		Response<CustomerAnswerDto> save(CustomerAnswerDto dto);
		
		/**
		*修改,当selective=true时修改非空列,当selective=false修改所有列
		*/
		Response<Integer> updateByPrimaryKey(CustomerAnswerDto dto,Boolean selective);
		
		/**
		 *逻辑删除
		 */
		Response<Integer> deleteByPrimaryKey(Long id);
		
		/**
		 *主键查询
		 */
		Response<CustomerAnswer> findById(Long id);
		
		/**
		 *根据dto查询记录
		 */
		ResponseList<CustomerAnswer> findByDto(CustomerAnswerDto dto);
		/**
		 *根据dto以及分页参数查询记录
		 */
		Page<CustomerAnswer> findPageByDto(CustomerAnswerDto dto,Integer begin,Integer row);
		
		/**
		 *保存问卷
		 */
		Response<CustomerAnswer> add(CustomerAnswerInfo info);
		
		/**
		 *编辑问卷
		 */
		Response<CustomerAnswer> edit(CustomerAnswerInfo info);
		
		/**
		 *根据dto查询记录
		 */
		ResponseList<CustomerAnswer> selectListInfoByDto(CustomerAnswerDto dto);
		
		/**
		 *匹配客户
		 */
		Response<CustomerAnswer> matchCustomer(Long projectQuestionnaireId, String customerName, String customerPhone, String oldName, String oldPhone);
}
